package com.sxc.bean;

import com.sxc.xmlAdapter.BodyAdapter;
import com.sxc.xmlAdapter.HeadAdapter;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

@XmlRootElement(name = "message")
public class MessagePlus {
    private HeadPlus head;
    private BodyPlus body;

    @XmlJavaTypeAdapter(HeadAdapter.class)
    @XmlElement(name = "head")
    public HeadPlus getHead() {
        return head;
    }

    public void setHead(HeadPlus head) {
        this.head = head;
    }

    @XmlJavaTypeAdapter(BodyAdapter.class)
    @XmlElement(name = "body")
    public BodyPlus getBody() {
        return body;
    }

    public void setBody(BodyPlus body) {
        this.body = body;
    }
}
